import count from '@dfeidao/atom-nodejs/db/count';
// import query from '@feidao/web/atom/nodejs/db/query';


interface Message {
	menu_no: string;
	productid: string;
}
export default async function atom(msg: Message, action_id: string, session_id: string) {
	const systemid = '12';
	const menu_no = msg.menu_no;
	const productid = msg.productid;
	// const { exec, prepare } = query(action_id, session_id, spaceid, systemid);
	// prepare('auth_formgroup_form', ['menu_no'], { productid }, 0, 0);
	// const [data]: any = await exec();
	const c = count(action_id, session_id, systemid);
	c.prepare('auth_formgroup_form', { menu_no, productid });
	const [t] = await c.exec();
	return t;
}
